package com.boe.common.mvc;

import lombok.*;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.ArrayList;
import java.util.List;


@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class LoginUserModel extends IdName {
    private String token = "";
    private String system = "";
    private String loginField = "";
    private String loginName = "";
    /**
     * 是否是超级管理员
     */
    private Boolean isAdmin = false;
    /**
     * 所属组织
     */
    private IdName organization = new IdName();
    private String freshToken = "";//角色

    private List<String> depts = new ArrayList<>();
    private List<String> groups = new ArrayList<>();
    private List<String> apps = new ArrayList<>();
    private List<String> roles = new ArrayList<>();

    private String ext = "";

}
